<?php
/* Smarty version 3.1.33, created on 2019-12-08 10:27:27
  from 'D:\xampp\htdocs\ps_project\application\views\templates\rider\index.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5decc1ff48f784_44472930',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '5b8520688dfe0ae6fe811f6f22d094d6a789b65a' => 
    array (
      0 => 'D:\\xampp\\htdocs\\ps_project\\application\\views\\templates\\rider\\index.tpl',
      1 => 1575797245,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5decc1ff48f784_44472930 (Smarty_Internal_Template $_smarty_tpl) {
?><!DOCTYPE html>
<html lang="zh-CN" xmlns="http://www.w3.org/1999/html">

<head>
	<meta charset="UTF-8">
	<title>接单</title>
</head>

<body>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
rider/myorder">我的订单</a>
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
user/logout">退出登录</a>
<ul>
	<?php if ($_smarty_tpl->tpl_vars['orders']->value != NULL) {?>
		<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['orders']->value, 'order');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['order']->value) {
?>
			<li>订单ID: <?php echo $_smarty_tpl->tpl_vars['order']->value->id;?>
</li>
			<li>下单时间: <?php echo $_smarty_tpl->tpl_vars['order']->value->comfirm_time;?>
</li>
			<li>送达地址: <?php echo $_smarty_tpl->tpl_vars['order']->value->dst_addr;?>
</li>
			<li>商家名: <?php echo $_smarty_tpl->tpl_vars['order']->value->src_name;?>
</li>
			<li>商家地址: <?php echo $_smarty_tpl->tpl_vars['order']->value->src_addr;?>
</li>
			<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value['base_url'];?>
rider/order/<?php echo $_smarty_tpl->tpl_vars['order']->value->id;?>
">查看详情</a>
			<br>
			<br>
		<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	<?php } else { ?>
		无待接订单
	<?php }?>
</ul>

</body>

</html>
<?php }
}
